<?php
$this->widget('ext.mylib.widgets.Gridview.DGridView', array(
    'id'           => 'members-grid',
    'dataProvider' => $model->search(),
    'htmlOptions'  => array('class' => 'hastable'),
    'columnGroup' => array(50, 200, 150, 100, 0, 65, 101),
    'columns'    => array(
        array(
            'class'       => 'ext.mylib.widgets.Gridview.DIdColumn',
            'htmlOptions' => array('style' => 'text-align: center;'),
        ),
        'full_name',
        'email',
        'phone',
        'address',
        array(
            'class' => 'ext.mylib.widgets.ActiveColumn.DActiveColumn',
            'name'  => 'activated_flag',
            'url'   => Yii::app()->createUrl('dadmin/members/toggleActive/id'),
        ),
        array(
            'class'       => 'ext.mylib.widgets.Gridview.DButtonColumn',
            'afterDelete' => 'function(){
                showMessage("#message", "' . Yii::t('DadminModule.msg', 'deleted') . '"); 
            }',
        ),
    ),
));
?>
<div class="clearfix"></div>